<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/picture/pika.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/picture/pika.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">
  <meta name="baidu-site-verification" content="code-LqqDM3vffE">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">


  <script>
  (function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/2efd5eff.js","daovoice")
  daovoice('init', {
    app_id: "2efd5eff"
  });
  daovoice('update');
  </script>


<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"notspr.com","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":true,"scrollpercent":true},"bookmark":{"enable":true,"color":"#ff7600","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":false,"async":true,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="0.2.8 - 2019-03-09 Fixed: Edge form support.(#178 - @robinnorth) Fixed: Removed keyup event listener for forms.(#184 - @BehindTheMath) Fixed: Bugs in evalScripts().(#186 - @BehindTheMath) Fixed: Handl">
<meta property="og:type" content="website">
<meta property="og:title" content="Sapphire">
<meta property="og:url" content="https://notspr.com/lib/pjax/CHANGELOG.html">
<meta property="og:site_name" content="Sapphire">
<meta property="og:description" content="0.2.8 - 2019-03-09 Fixed: Edge form support.(#178 - @robinnorth) Fixed: Removed keyup event listener for forms.(#184 - @BehindTheMath) Fixed: Bugs in evalScripts().(#186 - @BehindTheMath) Fixed: Handl">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-12-02T16:05:56.018Z">
<meta property="article:modified_time" content="2020-11-15T21:50:18.912Z">
<meta property="article:author" content="Ryan Shu">
<meta property="article:tag" content="博客">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://notspr.com/lib/pjax/CHANGELOG">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : false,
    lang   : 'zh-CN'
  };
</script>

  <title> | Sapphire
</title>
  


  <script data-pjax>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?2907d577c8c6c2f7fe3843736d24280d";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

  <!--pjax：防止跳转页面音乐暂停-->
  <script src="https://cdn.jsdelivr.net/npm/pjax@0.2.8/pjax.js"></script>
<link rel="alternate" href="/atom.xml" title="Sapphire" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Sapphire</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">興趣使然的博客</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/aboutme/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">82</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">34</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">40</span></a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>

  <a href="https://github.com/sususama5555" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
  
  

          <div class="content page posts-expand">
            

    
    
    
    <div class="post-block" lang="zh-CN">
      <header class="post-header">

<h1 class="post-title" itemprop="name headline">
</h1>

<div class="post-meta">
  
  <ul class="breadcrumb">
          
            <li><a href="/lib/">LIB</a></li>
            <li><a href="/lib/pjax/">PJAX</a></li>
            <li>CHANGELOG</li>
          
  </ul>

</div>

</header>

      
      
      
      <div class="post-body">
          <h1 id="0-2-8-2019-03-09"><a href="#0-2-8-2019-03-09" class="headerlink" title="0.2.8 - 2019-03-09"></a>0.2.8 - 2019-03-09</h1><ul>
<li>Fixed: Edge form support.<br>(<a href="https://github.com/MoOx/pjax/pull/178" target="_blank" rel="noopener">#178</a> - @robinnorth)</li>
<li>Fixed: Removed keyup event listener for forms.<br>(<a href="https://github.com/MoOx/pjax/pull/184" target="_blank" rel="noopener">#184</a> - @BehindTheMath)</li>
<li>Fixed: Bugs in evalScripts().<br>(<a href="https://github.com/MoOx/pjax/pull/186" target="_blank" rel="noopener">#186</a> - @BehindTheMath)</li>
<li>Fixed: Handle non-string HTML passed to loadContent().<br>(<a href="https://github.com/MoOx/pjax/pull/200" target="_blank" rel="noopener">#200</a> - @BehindTheMath)</li>
<li>Tooling: Switch linting to ESLint and Prettier.<br>(<a href="https://github.com/MoOx/pjax/pull/191" target="_blank" rel="noopener">#191</a> - @BehindTheMath)</li>
</ul>
<h1 id="0-2-7-2018-08-15"><a href="#0-2-7-2018-08-15" class="headerlink" title="0.2.7 - 2018-08-15"></a>0.2.7 - 2018-08-15</h1><ul>
<li>Fixed: Parsing values of option elements in forms.<br>(<a href="https://github.com/MoOx/pjax/pull/162" target="_blank" rel="noopener">#162</a> - @BehindTheMath)</li>
<li>Fixed: Added index.d.ts to package.json so it will be installed by npm.<br>(<a href="https://github.com/MoOx/pjax/commit/c589ab9c25bee6161bf3e557eaca44e51c14fb89" target="_blank" rel="noopener">c589ab9</a> - @BehindTheMath)</li>
<li>Fixed: <code>options.history</code> to correctly parse being set to false.<br>(<a href="https://github.com/MoOx/pjax/pull/165" target="_blank" rel="noopener">#165</a> - @BehindTheMath).</li>
<li>Fixed: Pass the current <code>options</code> object to <code>loadContent()</code>.<br>(<a href="https://github.com/MoOx/pjax/pull/171" target="_blank" rel="noopener">#171</a> - @BehindTheMath)</li>
<li>Fixed: Ensure correct XHR encoding for multipart/form-data forms<br>(<a href="https://github.com/MoOx/pjax/pull/174" target="_blank" rel="noopener">#174</a> - @BehindTheMath)</li>
<li>Added: More documentation.<br>(<a href="https://github.com/MoOx/pjax/pull/160" target="_blank" rel="noopener">#160</a>, <a href="https://github.com/MoOx/pjax/pull/171" target="_blank" rel="noopener">#171</a> - @robinnorth, @BehindTheMath)</li>
</ul>
<h1 id="0-2-6-2018-04-30"><a href="#0-2-6-2018-04-30" class="headerlink" title="0.2.6 - 2018-04-30"></a>0.2.6 - 2018-04-30</h1><ul>
<li>Fixed: Form submission for GET requests.<br>(<a href="https://github.com/MoOx/pjax/pull/129" target="_blank" rel="noopener">#129</a> - @robinnorth)</li>
<li>Fixed: Refactor <code>loadUrl()</code> to make manually calling simpler.<br>(<a href="https://github.com/MoOx/pjax/pull/134" target="_blank" rel="noopener">#134</a> - @robinnorth)</li>
<li>Fixed: Support multiple select fields in form submissions.<br>(<a href="https://github.com/MoOx/pjax/pull/147" target="_blank" rel="noopener">#147</a> - @robinnorth)</li>
<li>Fixed: Use the same options object in <code>handle-response</code> as in <code>send-request</code>. This way, <code>pjax.state.options</code> will also have the request options.<br>(<a href="https://github.com/MoOx/pjax/pull/148" target="_blank" rel="noopener">#148</a> - @BehindTheMath)</li>
<li>Added: Move the XHR callback to a separate method, and trigger an error event if the response cannot be parsed.<br>(<a href="https://github.com/MoOx/pjax/pull/137" target="_blank" rel="noopener">#137</a> - @BehindTheMath)</li>
<li>Added: TypeScript definitions.<br>(<a href="https://github.com/MoOx/pjax/pull/138" target="_blank" rel="noopener">#138</a> - @BehindTheMath)</li>
<li>Added: <code>replaceNode</code> switch, as an alternative to the <code>outerHTML</code> switch.<br>(<a href="https://github.com/MoOx/pjax/pull/141" target="_blank" rel="noopener">#141</a> - @BehindTheMath)</li>
<li>Added: <code>X-PJAX-Selectors</code> HTTP header. This is a serialized JSON array of selectors, taken from <code>options.selectors</code>. You can use this to send back only the elements that Pjax will use to switch, instead of sending the whole page.<br>(<a href="https://github.com/MoOx/pjax/pull/144" target="_blank" rel="noopener">#144</a> - @BehindTheMath)</li>
<li>Added: An option to use <code>FormData</code> to submit forms.<br>(<a href="https://github.com/MoOx/pjax/pull/153" target="_blank" rel="noopener">#153</a> - @BehindTheMath)</li>
<li>Added: Tests.<br>(<a href="https://github.com/MoOx/pjax/commit/f98f2dd63b48113ff91b6bd8808257bfc723ef6b" target="_blank" rel="noopener">f98f2dd</a>, <a href="https://github.com/MoOx/pjax/pull/145" target="_blank" rel="noopener">#145</a> - @robinnorth, @BehindTheMath)</li>
</ul>
<h1 id="0-2-5-2018-02-02"><a href="#0-2-5-2018-02-02" class="headerlink" title="0.2.5 - 2018-02-02"></a>0.2.5 - 2018-02-02</h1><ul>
<li>Fixed: Async switch functions now work correctly, because the DOM is now parsed after all the switches finish.<br>(<a href="https://github.com/MoOx/pjax/pull/79" target="_blank" rel="noopener">#79</a>, <a href="https://github.com/MoOx/pjax/pull/110" target="_blank" rel="noopener">#110</a> - @oskarrough, @BehindTheMath, @robinnorth)</li>
<li>Fixed: Bug on IE11 preventing AJAX page refresh.<br>(<a href="https://github.com/MoOx/pjax/pull/81" target="_blank" rel="noopener">#81</a> - @CPTechnikVX)</li>
<li>Fixed: Default switches are now available as <code>Pjax.switches</code>.<br>(<a href="https://github.com/MoOx/pjax/pull/92" target="_blank" rel="noopener">#92</a> - @BehindTheMath)</li>
<li>Fixed: An error that was caused by a missing <code>switchElementsAlt</code>.<br>(<a href="https://github.com/MoOx/pjax/pull/93" target="_blank" rel="noopener">#93</a>, <a href="https://github.com/MoOx/pjax/pull/104" target="_blank" rel="noopener">#104</a> - @BehindTheMath, @robinnorth)</li>
<li>Fixed: Incorrect <code>main</code> field in npm package<br>(<a href="https://github.com/MoOx/pjax/pull/105" target="_blank" rel="noopener">#105</a> - @robinnorth)</li>
<li>Fixed: A pending XHR is now aborted if the user navigates somewhere else before the request is finished.<br>(<a href="https://github.com/MoOx/pjax/pull/114" target="_blank" rel="noopener">#114</a> - @robinnorth)</li>
<li>Fixed: When rendering new content, focus will now be removed only from elements within one of the containers manipulated by Pjax.<br>(<a href="https://github.com/MoOx/pjax/pull/116" target="_blank" rel="noopener">#116</a> - @BehindTheMath)</li>
<li>Fixed: Stop dispatching extraneous <code>pjax:complete</code> events when external scripts load<br>(<a href="https://github.com/MoOx/pjax/pull/118" target="_blank" rel="noopener">#118</a> - @robinnorth)</li>
<li>Added: Send the <code>X-PJAX</code> header with XHR requests.<br>(<a href="https://github.com/MoOx/pjax/pull/80" target="_blank" rel="noopener">#80</a> - @bram1028)</li>
<li>Added: Direct download link for script tags. (@MoOx)</li>
<li>Added: Pass the element that triggered Pjax to the <code>pjax:send</code> event.<br>(<a href="https://github.com/MoOx/pjax/pull/94" target="_blank" rel="noopener">#94</a> - @BehindTheMath)</li>
<li>Added: An option to set a timeout for XHR requests.<br>(<a href="https://github.com/MoOx/pjax/pull/95" target="_blank" rel="noopener">#95</a> - @BehindTheMath)</li>
<li>Added: Checks for XHR redirects<br>(<a href="https://github.com/MoOx/pjax/pull/101" target="_blank" rel="noopener">#101</a> - @BehindTheMath)</li>
<li>Added: Save scroll position with history, and restore when navigating backwards or forwards.<br>(<a href="https://github.com/MoOx/pjax/pull/110" target="_blank" rel="noopener">#110</a>, <a href="https://github.com/MoOx/pjax/pull/119" target="_blank" rel="noopener">#119</a> - @BehindTheMath, @robinnorth)</li>
<li>Added: Scroll to element position when URL contains a hash<br>(<a href="https://github.com/MoOx/pjax/pull/110" target="_blank" rel="noopener">#110</a> - @BehindTheMath)</li>
<li>Added: Minified version of the Pjax bundle.<br>(<a href="https://github.com/MoOx/pjax/pull/115" target="_blank" rel="noopener">#115</a> - @BehindTheMath)</li>
<li>Changed: Miscellaneous code and tests cleanup.<br>(<a href="https://github.com/MoOx/pjax/pull/96" target="_blank" rel="noopener">#96</a>, <a href="https://github.com/MoOx/pjax/pull/98" target="_blank" rel="noopener">#98</a>, <a href="https://github.com/MoOx/pjax/pull/99" target="_blank" rel="noopener">#99</a>, <a href="https://github.com/MoOx/pjax/pull/1070" target="_blank" rel="noopener">#100</a>, <a href="https://github.com/MoOx/pjax/pull/107" target="_blank" rel="noopener">#107</a>, <a href="https://github.com/MoOx/pjax/pull/113" target="_blank" rel="noopener">#113</a>, <a href="https://github.com/MoOx/pjax/pull/120" target="_blank" rel="noopener">#120</a> - @BehindTheMath, @MoOx, @robinnorth)</li>
</ul>
<h1 id="0-2-4-2016-06-28"><a href="#0-2-4-2016-06-28" class="headerlink" title="0.2.4 - 2016-06-28"></a>0.2.4 - 2016-06-28</h1><ul>
<li>Fixed: <code>refresh</code> should now work (use <code>this.parseDOM</code> for refresh)<br>(<a href="https://github.com/MoOx/pjax/pull/67" target="_blank" rel="noopener">#67</a> - @compressed)</li>
<li>Fixed: Some attributes, such as <code>itemscope</code> have no corresponding value.<br>This change allows them to still be set.<br>(<a href="https://github.com/MoOx/pjax/pull/67" target="_blank" rel="noopener">#67</a> - @compressed)</li>
<li>Added: <code>cacheBust</code> option<br>(<a href="https://github.com/MoOx/pjax/pull/71" target="_blank" rel="noopener">#71</a> - @tremby)</li>
</ul>
<h1 id="0-2-3-2016-03-24"><a href="#0-2-3-2016-03-24" class="headerlink" title="0.2.3 - 2016-03-24"></a>0.2.3 - 2016-03-24</h1><ul>
<li>Fixed: <code>currentUrlFullReload</code> option now works</li>
<li>Fixed: <code>this.reload</code> is now a Function<br>(<a href="https://github.com/MoOx/pjax/issues/65" target="_blank" rel="noopener">#65</a>)</li>
</ul>
<h1 id="0-2-2-2016-03-12"><a href="#0-2-2-2016-03-12" class="headerlink" title="0.2.2 - 2016-03-12"></a>0.2.2 - 2016-03-12</h1><ul>
<li>Fixed: added back standalone version in <code>./pjax.js</code><br>(<a href="https://github.com/MoOx/pjax/issues/57" target="_blank" rel="noopener">#57</a></li>
<li>Fixed: error when using pjax with google analytics (<code>options</code> was undefined)<br>(<a href="https://github.com/MoOx/pjax/pull/59" target="_blank" rel="noopener">#59</a>)</li>
<li>Fixed: HierarchyRequestError error<br>(<a href="https://github.com/MoOx/pjax/pull/49" target="_blank" rel="noopener">#49</a>)</li>
<li>Fixed: <code>TypeError: Pjax.forEachEls is not a function</code><br>(<a href="https://github.com/MoOx/pjax/pull/52" target="_blank" rel="noopener">#52</a>)</li>
<li>Fixed: <code>TypeError: Pjax.executeScripts is not a function</code><br>(<a href="https://github.com/MoOx/pjax/pull/52" target="_blank" rel="noopener">#52</a>)</li>
<li>Fixed: <code>TypeError: Pjax.clone is not a function</code><br>(<a href="https://github.com/MoOx/pjax/pull/52" target="_blank" rel="noopener">#52</a>)</li>
<li>Added: Ignore events with prevented defaults<br>(<a href="https://github.com/MoOx/pjax/pull/50" target="_blank" rel="noopener">#50</a>)</li>
</ul>
<h1 id="0-2-1-2015-02-04"><a href="#0-2-1-2015-02-04" class="headerlink" title="0.2.1 - 2015-02-04"></a>0.2.1 - 2015-02-04</h1><ul>
<li>Fixed: it’s better when a release have actual files.</li>
</ul>
<h1 id="0-2-0-2015-02-04"><a href="#0-2-0-2015-02-04" class="headerlink" title="0.2.0 - 2015-02-04"></a>0.2.0 - 2015-02-04</h1><ul>
<li>Fixed: prevent scrollTo from being converted from false to 0 (<a href="https://github.com/MoOx/pjax/pull/33" target="_blank" rel="noopener">#33</a>)</li>
<li>Changed: code exploded in commonjs style</li>
<li>Added: lots of tests</li>
<li>Added: <code>refresh</code> method to force update a DOM element (<a href="https://github.com/MoOx/pjax/pull/36" target="_blank" rel="noopener">#36</a>)</li>
</ul>
<h1 id="0-1-4-2014-10-14"><a href="#0-1-4-2014-10-14" class="headerlink" title="0.1.4 - 2014-10-14"></a>0.1.4 - 2014-10-14</h1><ul>
<li>Fixed: allow to load pages without any attributes on <code>&lt;html&gt;</code> element (fix <a href="https://github.com/MoOx/pjax/issues/6" target="_blank" rel="noopener">#6</a>)</li>
<li>Fixed: make <code>Pjax.switches.sideBySide</code> method usable (fix <a href="https://github.com/MoOx/pjax/issues/13" target="_blank" rel="noopener">#13</a>)</li>
</ul>
<h1 id="0-1-3-2014-09-16"><a href="#0-1-3-2014-09-16" class="headerlink" title="0.1.3 - 2014-09-16"></a>0.1.3 - 2014-09-16</h1><ul>
<li>Fixed: clicking on the current url somewhere does not produce a full reload by default (see option <code>currentUrlFullReload</code>)</li>
<li>Fixed: <code>document.implementation.createHTMLDocument</code> error (in IE10, ref <a href="https://github.com/MoOx/pjax/pull/16" target="_blank" rel="noopener">#16</a>)</li>
</ul>
<h1 id="0-1-2-2014-04-03"><a href="#0-1-2-2014-04-03" class="headerlink" title="0.1.2 - 2014-04-03"></a>0.1.2 - 2014-04-03</h1><ul>
<li>Changed: <code>pjax.js</code> relocated in <code>src/</code></li>
<li>Fixed: <code>&lt;html&gt;</code> attributes of pjaxified document are now available</li>
</ul>
<h1 id="0-1-1-2014-04-02"><a href="#0-1-1-2014-04-02" class="headerlink" title="0.1.1 - 2014-04-02"></a>0.1.1 - 2014-04-02</h1><ul>
<li>Fixed: safer UMD wrapper (fix concat issue)</li>
</ul>
<h1 id="0-1-0-2014-03-24"><a href="#0-1-0-2014-03-24" class="headerlink" title="0.1.0 - 2014-03-24"></a>0.1.0 - 2014-03-24</h1><p>✨ Initial release</p>

      </div>
      
      
      
    </div>
    
  <ul class="breadcrumb">
          
            <li><a href="/lib/">LIB</a></li>
            <li><a href="/lib/pjax/">PJAX</a></li>
            <li>CHANGELOG</li>
          
  </ul>

    
    
    


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-8-2019-03-09"><span class="nav-number">1.</span> <span class="nav-text">0.2.8 - 2019-03-09</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-7-2018-08-15"><span class="nav-number">2.</span> <span class="nav-text">0.2.7 - 2018-08-15</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-6-2018-04-30"><span class="nav-number">3.</span> <span class="nav-text">0.2.6 - 2018-04-30</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-5-2018-02-02"><span class="nav-number">4.</span> <span class="nav-text">0.2.5 - 2018-02-02</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-4-2016-06-28"><span class="nav-number">5.</span> <span class="nav-text">0.2.4 - 2016-06-28</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-3-2016-03-24"><span class="nav-number">6.</span> <span class="nav-text">0.2.3 - 2016-03-24</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-2-2016-03-12"><span class="nav-number">7.</span> <span class="nav-text">0.2.2 - 2016-03-12</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-1-2015-02-04"><span class="nav-number">8.</span> <span class="nav-text">0.2.1 - 2015-02-04</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-2-0-2015-02-04"><span class="nav-number">9.</span> <span class="nav-text">0.2.0 - 2015-02-04</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-1-4-2014-10-14"><span class="nav-number">10.</span> <span class="nav-text">0.1.4 - 2014-10-14</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-1-3-2014-09-16"><span class="nav-number">11.</span> <span class="nav-text">0.1.3 - 2014-09-16</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-1-2-2014-04-03"><span class="nav-number">12.</span> <span class="nav-text">0.1.2 - 2014-04-03</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-1-1-2014-04-02"><span class="nav-number">13.</span> <span class="nav-text">0.1.1 - 2014-04-02</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#0-1-0-2014-03-24"><span class="nav-number">14.</span> <span class="nav-text">0.1.0 - 2014-03-24</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Ryan Shu"
      src="/picture/avatar.jpg">
  <p class="site-author-name" itemprop="name">Ryan Shu</p>
  <div class="site-description" itemprop="description">全栈 | 硬件 | 篮球 | 游戏</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">40</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">34</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">82</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/sususama5555" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;sususama5555" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:876324872@qq.com" title="E-Mail → mailto:876324872@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/u/5330189327" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;u&#x2F;5330189327" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://steamcommunity.com/profiles/76561198294148424/" title="steam → https:&#x2F;&#x2F;steamcommunity.com&#x2F;profiles&#x2F;76561198294148424&#x2F;" rel="noopener" target="_blank"><i class="fab fa-steam fa-fw"></i>steam</a>
      </span>
      <span class="links-of-author-item">
        <a href="/atom.xml" title="RSS → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i>RSS</a>
      </span>
  </div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" rel="noopener" target="_blank"><img src="/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title"><i class="fa fa-link fa-fw"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://ddoudou.xyz/" title="http:&#x2F;&#x2F;ddoudou.xyz" rel="noopener" target="_blank">豆豆的博客</a>
        </li>
    </ul>
  </div>

      </div>

      <!-- 音乐播放器 -->
      
           <div>
              <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="210" height="110" src="//music.163.com/outchain/player?type=2&id=4226232&auto=1&height=66"></iframe>
           </div>
      

      <!-- 滚动条 -->
        <div class="back-to-top motion-element">
          <i class="fa fa-arrow-up"></i>
          <span>0%</span>
        </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        
  <div class="beian"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">粤ICP备20063016号-2 </a>
  </div>

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Ryan Shu</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
      <span class="post-meta-item-text">站点总字数：</span>
    <span title="站点总字数">180k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
      <span class="post-meta-item-text">站点阅读时长 &asymp;</span>
    <span title="站点阅读时长">2:44</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/pjax/pjax.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>

<script src="/js/utils.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>

  <script>
var pjax = new Pjax({
  selectors: [
    'head title',
    '#page-configurations',
    '.content-wrap',
    '.post-toc-wrap',
    '.languages',
    '#pjax'
  ],
  switches: {
    '.post-toc-wrap': Pjax.switches.innerHTML
  },
  analytics: false,
  cacheBust: false,
  scrollTo : !CONFIG.bookmark.enable
});

window.addEventListener('pjax:success', () => {
  document.querySelectorAll('script[data-pjax], script#page-configurations, #pjax script').forEach(element => {
    var code = element.text || element.textContent || element.innerHTML || '';
    var parent = element.parentNode;
    parent.removeChild(element);
    var script = document.createElement('script');
    if (element.id) {
      script.id = element.id;
    }
    if (element.className) {
      script.className = element.className;
    }
    if (element.type) {
      script.type = element.type;
    }
    if (element.src) {
      script.src = element.src;
      // Force synchronous loading of peripheral JS.
      script.async = false;
    }
    if (element.dataset.pjax !== undefined) {
      script.dataset.pjax = '';
    }
    if (code !== '') {
      script.appendChild(document.createTextNode(code));
    }
    parent.appendChild(script);
  });
  NexT.boot.refresh();
  // Define Motion Sequence & Bootstrap Motion.
  if (CONFIG.motion.enable) {
    NexT.motion.integrator
      .init()
      .add(NexT.motion.middleWares.subMenu)
      .add(NexT.motion.middleWares.postList)
      .bootstrap();
  }
  NexT.utils.updateSidebarPosition();
});
</script>




  
  <script data-pjax>
    (function(){
      var canonicalURL, curProtocol;
      //Get the <link> tag
      var x=document.getElementsByTagName("link");
		//Find the last canonical URL
		if(x.length > 0){
			for (i=0;i<x.length;i++){
				if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
					canonicalURL=x[i].href;
				}
			}
		}
    //Get protocol
	    if (!canonicalURL){
	    	curProtocol = window.location.protocol.split(':')[0];
	    }
	    else{
	    	curProtocol = canonicalURL.split(':')[0];
	    }
      //Get current URL if the canonical URL does not exist
	    if (!canonicalURL) canonicalURL = window.location.href;
	    //Assign script content. Replace current URL with the canonical URL
      !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
  </script>




  
<script src="/js/local-search.js"></script>













    <div id="pjax">
  

  

    </div>
</body>
</html>
